﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7"/>
  <title>金兰广告联合推广中心</title>
  <link href="images/Top.css" rel="stylesheet" type="text/css"/>
  <script type="text/javascript" src="../../js/jquery-1.4.1.min.js"></script>
<script type="text/javascript" src="RequestHandler.ashx?v=1.0&action=sc&ut=custom"></script>
<script type="text/javascript">
    var maxpage = 0;
    var currPageIndex = 0;
    var maxcount = 0;
    function gopage(pageIndex) {
        if (pageIndex == "")
            return;
        if (pageIndex < 1)
            return;
    }

    function InitData(pageIndex) {
        var url = "RequestHandler.ashx?v=1.0&action=ilif&ut=custom&tagmode=any&format=json&jsoncallback=?&pageIndex=" + pageIndex + "&st=" + Math.random();
        $.get(url, function (data) {
            var result = "";
            var json = (new Function('return ' + data))();
            maxpage = json.maxpage;
            currPageIndex = json.pageIndex;
            maxcount = json.maxcount;
            if (json.retcode == 1) {
                $.each(json.items, function (i, item) {
                    if (item != null) {                        
                        result += "<tr>";
                        result += "<td height=\"30\"><a href=\"#\">" + item.RequestIp + "</a></td>";
                        result += "<td>" + item.locationmsg + "</td>";
                        result += "<td>" + item.Commit_Date + "</td>";
                        result += "<td><a href=\"#\">" + item.RewardPoints + "积分</a></td>";
                        result += "<td>" + (item.Status == true ? "<span style=\"color:#ff0000\">已审核</span>" : "待审核") + "</td>";
                        result += "</tr>";
                    }
                });
            }
            $("#TBody_Template").html(result);
            $("#Span_Page_Count").text(maxpage);
        });
    }
    function GetLocation(ip) {
        var url = "RequestHandler.ashx?v=1.0&action=lm&ut=custom&tagmode=any&format=text&st=" + Math.random();
        $.get(url, function (data) {
            return data;
        });
    }
    function gopage(pageIndex) {
        if (pageIndex == "")
            return;
        if (pageIndex > maxpage)
            return;
        if (pageIndex < 1)
            return;
        InitData(pageIndex);
    }

    $(document).ready(function () {
        InitData(1);
        var url = "RequestHandler.ashx?zv=1.0&action=ilcode&ut=custom&tagmode=any&format=json&jsoncallback=?&st=" + Math.random();
        $.get(url, function (data) {
            //$("#inviteLinkQQ").text("在这个网站发广告.可以直接显示在百度和Google的首页上.现在是免费的！" + data);
            $("#inviteLinkQQ").text("首页展示，广告黄金位置，要想广告做得好，金兰推广少不了！" + data);
        });
//        url = "RequestHandler.ashx?v=1.0&action=sc&ut=custom&format=json";
//        $.get(url, function (data) {
//            var json = (new Function('return ' + data))();
//            alert(user);
//            alert(json.Setting.RewardBalancePoin);
//            $("#reward_balancePoint").text(json.Setting.RewardBalancePoin);
//        });
    });
    function copyLink(el, o) {
        el.select();
        if (window.clipboardData) {
            window.clipboardData.setData('text', el.val());
            $("#" + o).css("display", "block");
            setTimeout(function () {
                $("#" + o).hide("slow");
            }, 1500);
        } else { 
            unsafeWindow.netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
            var clipboardHelper = Components.classes[ "@mozilla.org/widget/clipboardhelper;1"].getService(Components.interfaces.nsIClipboardHelper);
            clipboardHelper.copyString(el.val());
        }
    }
</script>
</head>
<body>
  
<div class="top">
  <div class="logo"></div>
  <div class="topLeft">
    你好，<span id="userName"></span>! <a href="RequestHandler.ashx?ut=custom&action=logout">退出</a><br /><br /><a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=1939337318&site=qq&menu=yes"><img border="0" src="http://wpa.qq.com/pa?p=2:1939337318:41" alt="点击这里给我发消息" title="点击这里给我发消息"></a>　<a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=2570978789&site=qq&menu=yes"><img border="0" src="http://wpa.qq.com/pa?p=2:2570978789:41" alt="点击这里给我发消息" title="点击这里给我发消息"></a>　<a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=2207922598&site=qq&menu=yes"><img border="0" src="http://wpa.qq.com/pa?p=2:2207922598:41" alt="点击这里给我发消息" title="点击这里给我发消息"></a></div>
  <!--页面头部 end-->
  <ul class="topNav">
<div id=NavMain class="nav_main">
<ul>
  <li class=homepage><A id=NavMainHome title=首页 
  href="Main.html">首页</A></li>
  <li class=account><A id=NavMainAccount title=账户信息 
  href="PersonalInfo.html" >账户信息</A></li>
  <li class=finance><A id=NavMainFinance title=充值管理
  href="AccountInfo.html">充值管理</A></li>
  <li class=overview><A id=NavMainOverview title=搜索引擎推
  href="KeywordsList.aspx?action=gopage&pageIndex=1">搜索引擎推广</A></li>
  <li class=overtao><A id=NavMainovertao title=网店推广
  href="ShopList.aspx?action=gopage&pageIndex=1">网店推广</A></li>
  <li class=manage><A id=NavMainManage title=邀请好友
  href="InviteLink.html" class="current">邀请好友</A></li></ul></div>
  </ul>
</div>
<div class="topSpace"></div>
  <!-- Main -->
  <div class="main">
    <div class="c2">
      <div class="c2l">
        <img src="Images/InviteLink_jp.png" alt="" /></div>
      <div class="c2r">
        <span class="red">您的好友通过您的邀请链接加入金兰推广，您将会获得奖励。</span><br />
        奖励办法：成功邀请每位好友您将获得 <span class="red" id="reward_balancePoint"></span> 积分。<span class="c2r_p3">注意：同一IP在24小时内只有第一次有效。</span>
      </div>
      <div class="clear">
      </div>
    </div>
    <div class="c1">
      <h4 class="c1Ttitle">复制链接发给您的好友</h4>
      <textarea name="inviteLinkQQ" id="inviteLinkQQ" rows="2" class="inputText" onclick="copyLink($('#inviteLinkQQ'), 'tipCopy1')"></textarea>
      <input type="submit" class="inputButton" value="复制链接" onclick="copyLink($('#inviteLinkQQ'), 'tipCopy1')"/>
      <div id="tipCopy1" class="tipCopy">
        网址复制成功！<br />
        你可以利用Ctrl+V直接粘贴。
      </div>
<h4 class="c1Ttitle">&nbsp;</h4>
<h4 class="c1Ttitle">推广好友奖励记录</h4>
<p class="c1Ttitle">&nbsp;</p>
<table cellspacing="0" cellpadding="0" style="text-align: center" align="center" width="100%">
 <tr>
 <th width="20%" bgcolor="#F6F6F6">IP</th>
 <th width="20%" bgcolor="#F6F6F6">来路 </th>
<th width="20%" bgcolor="#F6F6F6">注册时间 </th>
<th width="20%" bgcolor="#F6F6F6">奖励积分</th>
 <th width="20%" bgcolor="#F6F6F6">状态</th>
</tr>
<tbody id="TBody_Template"></tbody>
  </table>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
            <tbody><tr>
                <td style="width:10%;height:35px;border-top:solid 1px;border-bottom:solid 1px;border-left:solid 1px; border-color:#CCCCCC">&nbsp;</td>
                <td style="width:20%;padding-top:4px;border-top:solid 1px;border-bottom:solid 1px;border-color:#CCCCCC">共计：<span id="Span_Page_Count">1 </span>页 </td>
                <td style="width:5%;text-align:center;padding-top:4px;border-top:solid 1px;border-bottom:solid 1px;border-color:#CCCCCC"><a id="A_First_Page" target="_self" href="javascript:gopage(0)">首页</a></td>
                <td style="width:5%;text-align:center;padding-top:4px;border-top:solid 1px;border-bottom:solid 1px;border-color:#CCCCCC"><a id="A_Prev_Page" target="_self" href="javascript:gopage(currPageIndex-1)">上一页</a></td>
                <td style="width:5%;text-align:center;padding-top:4px;border-top:solid 1px;border-bottom:solid 1px;border-color:#CCCCCC"><a id="A_Next_Page" target="_self" href="javascript:gopage(currPageIndex+1)">下一页</a></td>
                <td style="width:5%;text-align:center;padding-top:4px;border-top:solid 1px;border-bottom:solid 1px;border-color:#CCCCCC"><a id="A_Last_Page" target="_self" href="javascript:gopage(maxpage)">尾页</a></td>
                <td style="width:32%;padding-right:5px;padding-top:4px;text-align:right;border-top:solid 1px;border-bottom:solid 1px;border-color:#CCCCCC">第</td>
                <td style="width:3%;border-top:solid 1px;border-bottom:solid 1px;border-color:#CCCCCC"><input type="text" id="Page_Go_To" style="width:10;border:solid 1px;border-color:#DDDDDD;padding-top:2px;height:20px;" size="5" maxlength="4"></td>
                <td style="width:2%;padding-left:5px;padding-top:4px;border-top:solid 1px;border-bottom:solid 1px;border-color:#CCCCCC">页</td>
                <td style="width:13%;padding-top:4px;border-top:solid 1px;border-bottom:solid 1px;border-right:solid 1px;border-color:#CCCCCC"><a id="A_Go_Page" target="_self" href="javascript:gopage(document.all('Page_Go_To').value)">跳转</a></td>
            </tr>
  </tbody></table>
    </div>
  </div>
  <!-- /Main -->
 <table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td><div class="bottom">
  版权所有：深圳市金兰网络科技有限公司</div>
</td></tr></table>
<script type="text/javascript" src="js/Main.js"></script>
</body></html>